package com.egao.common.manage;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 列表统计模型
 * @author lym
 * @date 2022/11/21 14:40
 */
@Data
public class TableStatistics {

    @ApiModelProperty("编号")
    private Integer id;

    @ApiModelProperty("名称")
    private String name;

    @ApiModelProperty("值")
    private long value;

    @ApiModelProperty("数量")
    private Object count;

    @ApiModelProperty("查询")
    private String search;

    @ApiModelProperty("名称")
    private String realName;

    public TableStatistics() {}

    public TableStatistics(Integer id, String name, Object count) {
        this.id = id;
        this.name = name;
        this.count = count;
    }

    public TableStatistics(Integer id, String name, Object count, String search, String realName) {
        this.id = id;
        this.name = name;
        this.count = count;
        this.search = search;
        this.realName = realName;
    }

    public TableStatistics(String name, long value) {
        this.name = name;
        this.value = value;
    }

    public TableStatistics(String name, long value, String realName) {
        this.name = name;
        this.value = value;
        this.realName = realName;
    }
}
